package demo.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * Shiro 自定义 authentication token
 *
 * @author 肖溥博文
 * @version 1.0
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String jwt) {
        this.token = jwt;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
